<?php
/*
 Plugin Name: Chapter 2 - YouTube Embed
Plugin URI: http://wordpress.org/extend/plugins/hello-dolly/
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
Author: Manh Nguyen
Version: 1.6
Author URI: http://ma.tt/
*/

add_shortcode('youtubevid', 'ch2ye_youtube_embed_shortcode');
function ch2ye_youtube_embed_shortcode($atts)
{
	extract(shortcode_atts(array('id' => ''), $atts));
	$output = '<iframe width="560" height="315"
	src="http://www.youtube.com/embed/' . $id . '"
	frameborder="0" allowfullscreen></iframe>';
	return $output;
}
?>